﻿using System.Collections.Generic;
using UnityEngine;
using com.guojin.core.io.message;
using com.guojin.core.io;

namespace com.guojin.mj.net.message.login
{
    public class LMMunberList : Message
    {
        public static int TYPE = 7;
        public static int ID = 113;

        public  List<LMMunberInfo> list;
        public int allid;

        public void decode(core.io.Input _in)
        {
            int size = _in.readInt();
            if (size>0)
            {
                list = new List<LMMunberInfo>();
                for (int i = 0; i < size; i++)
                {
                    LMMunberInfo m = new LMMunberInfo();
                    m.decode(_in);
                    list.Add(m);
                }
            }
            allid = _in.readInt();
        }

        public void encode(Output _out)
        {

        }
        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return "allid"+ allid;
        }
    }
}
